<jsp:useBean id="idHandler" class="edu.capex.javaee.ssl.Login" scope="request">
    <jsp:setProperty name="idHandler" property="*"/>
</jsp:useBean>		
<html>
    <head>
        <title>Programmatic Security</title>
    </head>
    <body>
        <%
            String userName = request.getParameter("userName");
            ServletContext context = getServletContext();
            context.setAttribute("name", userName);
            String passWord = request.getParameter("passWord");
            if (idHandler.authenticate(userName, passWord)) {
                response.sendRedirect(request.getContextPath()+"/SSL/welcome.jsp");
            } else {
                response.sendRedirect(request.getContextPath()+"/SSL/retry.jsp");
            }
        %>
    </body>
</html>
